package com.example.backend.controler;

import com.example.backend.pojo.BigType;
import com.example.backend.service.BigType.BigTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/bigType")
public class BigTypeController {
    @Autowired
    BigTypeService bigTypeService;
    @GetMapping("/findAll/")
    public List<BigType>  getALl(){
        return bigTypeService.getList();
    }
}
